import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Echarts from 'vue-echarts'
import DataVVue3 from '@kjgl77/datav-vue3'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 创建一个vue应用
// 1. 导入createApp函数
// 2. 编写一个根组件App.vue，导入进来
// 3. 基于根组件创建应用实例
// 4. 挂载到index.html的#app容器
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)

for (const [name, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(name, component);
}

app.use(ElementPlus)
app.use(router)
app.use(store)
app.use(DataVVue3)
app.component('vue-echarts', Echarts)

app.mount('#app')
